/*部门接口 */
import request from "@/utils/request";
// 通过祖先id获取子部门
export function getDepartmentByAncestor(ancestor_id) {
    console.log(`"/api/v1/department/descendants/getList/${ancestor_id}"`)
    if (ancestor_id)
        return request({
            url: "/api/v1/department/descendants/getList/" + ancestor_id,
            method: "get",
        })
}
// 获取部门根节点
export function getRootDepartment() {
    return request({
        url: `/api/v1/department/root/node`,
        method: "get",
    });
}